package com.sc.nft.feign;

import com.sc.nft.dto.BindTheMenuToThePermissionPackageDTO;
import com.sc.nft.dto.IdRequest;
import com.sc.nft.sup.Result;
import com.sc.nft.vo.PermissionPackageMenuVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "nft-commercial", path = "/commercial/merchantExtraPermissionMenu")
public interface MerchantExtraPermissionMenuClient {

    /**
     * 给权限包绑定菜单
     *
     * @param bindTheMenuToThePermissionPackageDTO
     * @return
     */
    @PostMapping(value = "bindTheMenuToThePermissionPackage")
    Result bindTheMenuToThePermissionPackage(@RequestBody BindTheMenuToThePermissionPackageDTO bindTheMenuToThePermissionPackageDTO);

    /**
     * 根据权限包id获取权限包菜单列表
     *
     * @param idRequest
     * @return
     */
    @PostMapping(value = "getsThePermissionPackageMenuList")
    Result<List<PermissionPackageMenuVO>> getsThePermissionPackageMenuList(@RequestBody IdRequest idRequest);

}
